/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.domain.assessment;

import java.io.Serializable;

/**
 *
 * @author User
 */
public class EvaluationItem implements Serializable {

    private AssessmentItem assessmentItem;
    private double markObtained;

    public EvaluationItem() {
    }

    public EvaluationItem(AssessmentItem item) {
        this.assessmentItem = item;
    }

    public double evaluate() {
        return this.getAssessmentItem().evaluate(this.getMarkObtained());
    }

    /**
     * @return the assessmentItem
     */
    public AssessmentItem getAssessmentItem() {
        return assessmentItem;
    }

    /**
     * @param assessmentItem the assessmentItem to set
     */
    public void setAssessmentItem(AssessmentItem assessmentItem) {
        this.assessmentItem = assessmentItem;
    }

    /**
     * @return the markObtained
     */
    public double getMarkObtained() {
        return markObtained;
    }

    /**
     * @param markObtained the markObtained to set
     */
    public void setMarkObtained(double markObtained) {
        this.markObtained = markObtained;
    }
}
